%% 
%% This is file `prettyref.sty', generated 
%% on <1995/3/5> with the docstrip utility (2.2i).
%% 
%% The original source files were:
%% 
%% prettyref.dtx  (with options: `style')
%% 
%% Copyright (c) 1995 Kevin Ruland 
%% 
%%
%% prettyref v1.0
%%
%% Copyright 1995.  by Kevin Ruland kevin@rodin.wustl.edu
%%
\ProvidesPackage{prettyref}
\long\def\@firstofthree#1#2#3{#1}
\long\def\@secondofthree#1#2#3{#2}
\long\def\@thirdofthree#1#2#3{#3}
\def\pr@table#1#2{Table #1}
\def\pr@eq#1#2{\textup{(#1)}}
\def\pr@lemma#1#2{Lemma #1}
\def\pr@thm#1#2{Theorem #1}
\def\pr@section#1#2{Section #1}
\def\pr@figure#1#2{Figure #1}
\def\@setref#1#2#3{%
  \ifx#1\relax
   \protect\G@refundefinedtrue
   \nfss@text{\reset@font\bfseries ??}%
   \@latex@warning{Reference `#3' on page \thepage \space
             undefined}%
  \else
   \expandafter#2#1\null
  \fi}
\def\ref#1{%
  \expandafter\@setref\csname r@#1\endcsname\@firstofthree{#1}}
\def\pageref#1{%
  \expandafter\@setref\csname r@#1\endcsname\@secondofthree{#1}}
\def\prettyref#1{%
  \expandafter\@setref\csname r@#1\endcsname\@thirdofthree{#1}}
\def\@prettylabel#1[#2]{
  \@bsphack
  \protected@write\@auxout{}%
    {\string\newlabel{#1}%
     {{\@currentlabel}{\thepage}%
      {\csname pr@#2\endcsname\@currentlabel\thepage}}}%
  \@esphack}
\def\@noprettylabel#1{
  \@bsphack
  \protected@write\@auxout{}%
    {\string\newlabel{#1}%
     {{\@currentlabel}{\thepage}%
      {\pr@eq\@currentlabel\thepage}}}%
  \@esphack}
\def\label#1{
\@ifnextchar[{\@prettylabel{#1}}{\@noprettylabel{#1}}
}
\endinput
%% 
%% End of file `prettyref.sty'.
